import { post, get } from "@/utils/request";

//下订单
export function fetchAddOrder(params) {
  return post("/order/placeAnOrder", params);
}

//订单删除
export function fetchDeleteOrder(id) {
  return post(`/order/delete?id=${id}`);
}

//修改订单状态
export function fetchUpdateOrderStatus(params) {
  return post(
    `/order/updateStatus?id=${params.id}&statusValue=${params.statusValue}`
  );
}

//订单详情
export function fetchOrderDetail(id) {
  return get(`/order/query?id=${id}`);
}
